package com.neutech.neusys.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.neusys.mapper.SysMapper;
import com.neutech.neusys.po.Sys;

@Service
public class SysService {
	@Autowired
	private SysMapper sysMapper;
	
	public Sys getSys(int id){
			return sysMapper.getSysById(id);
	}
	public void deleteSys(int id){
		sysMapper.deleteSysById(id);
	}
	public void updateSys(int id){
		sysMapper.updateSysById(id);
	}
	public Sys addSys(String sysName){
		return sysMapper.addSysByName(sysName);
	}
}
